home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / Clocks / CalendarClock.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  69 lines

  1. //----------------------------------------------------------------------------------------------------
  2. //
  3. //    CalendarClock
  4. //
  5. //    Inherits From:        Clock
  6. //
  7. //    Declared In:        CalendarClock.h
  8. //
  9. //    Class Description
  10. //
  11. //        CalendarClock adds behavior required for specific graphical
  12. //        representation.  A CalendarClock is a fixed size view (64 x 64).
  13. //        It uses a specific clock face image and draws time and date 
  14. //        information based on that image's appearance.
  15. //
  16. //
  17. //    Disclaimer
  18. //
  19. //        You may freely copy, distribute and reuse this software and its
  20. //        associated documentation. I disclaim any warranty of any kind, 
  21. //        expressed or implied, as to its fitness for any particular use.
  22. //
  23. //----------------------------------------------------------------------------------------------------
  24. #import "Clock.h"
  25.  
  26.  
  27. @interface CalendarClock : Clock
  28. {
  29.     NXColor        timeColor;
  30.     NXColor        weekdayColor;
  31.     NXColor        dateColor;
  32.     NXColor        monthColor;
  33.     BOOL        wantsYear;
  34. }
  35.  
  36.  
  37. //----------------------------------------------------------------------------------------------------
  38. //    Accessing Display Colors
  39. //----------------------------------------------------------------------------------------------------
  40. - timeColor: (NXColor) aColor;
  41. - weekdayColor: (NXColor) aColor;
  42. - dateColor: (NXColor) aColor;
  43. - monthColor: (NXColor) aColor;
  44.  
  45. - (NXColor) timeColor;
  46. - (NXColor) weekdayColor;
  47. - (NXColor) dateColor;
  48. - (NXColor) monthColor;
  49.  
  50.  
  51. //----------------------------------------------------------------------------------------------------
  52. //    Enabling Year Display
  53. //-----------------------------------------------------------------------------------------------------
  54. - wantsYear: (BOOL) aFlag;
  55. - (BOOL) wantsYear;
  56.  
  57.  
  58. //----------------------------------------------------------------------------------------------------
  59. //    Action Methods
  60. //----------------------------------------------------------------------------------------------------
  61. - takeWantsYearFlagFrom :sender;
  62.  
  63. - takeTimeColorFrom: sender;
  64. - takeWeekdayColorFrom: sender;
  65. - takeDateColorFrom: sender;
  66. - takeMonthColorFrom: sender;
  67.  
  68.  
  69. @end